package cn.xgxd.service.Impl;

import cn.xgxd.mapper.ForumMainMapper;

import cn.xgxd.pojo.ForumMain;
import cn.xgxd.service.ForumMainService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ForumMainServiceImpl implements ForumMainService {


    @Autowired
    private ForumMainMapper forumMainMapper;

    @Override
    public ForumMain getMainById(String forumId) {
        QueryWrapper<ForumMain> wrapper = new QueryWrapper<>();
        wrapper.eq("forum_id",forumId);
        return forumMainMapper.selectOne(wrapper);
    }
}
